package com.eastfair.projectcore.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 接口与菜单关系
 * </p>
 *
 * @author ligang
 * @since 2023-05-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "InterfaceMenuUpdateDTO", description = "接口与菜单关系")
public class InterfaceMenuUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID")
    @NotNull(message = "请填写菜单ID")
    private Long menuId;
    /**
     * 方法名
     */
    @ApiModelProperty(value = "方法名")
    @Size(max = 255, message = "方法名长度不能超过255")
    private String method;
    /**
     * 替换完成地址
     */
    @ApiModelProperty(value = "替换完成地址")
    @Size(max = 255, message = "替换完成地址长度不能超过255")
    private String replaceFullUrl;
    /**
     * 全接口地址
     */
    @ApiModelProperty(value = "全接口地址")
    @Size(max = 255, message = "全接口地址长度不能超过255")
    private String fullUrl;
    /**
     * 接口ID
     */
    @ApiModelProperty(value = "接口ID")
    @NotNull(message = "请填写接口ID")
    private Long interfaceId;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnabled;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDeleted;
}
